import random
import os

def gen_ma (Colum,line):
 	fp =  open ("./00.txt","w")

 	for i in range (Colum):
 		arr= []
 		for  i in range(0,line):
 			arr.append(str(random.randint(0,255))+"	")
 			print arr
	 	fp.writelines(arr)
	 	fp.write("\n")
	fp.close()

if __name__ == "__main__":
	number =  raw_input(" Column : ")
	line =  raw_input(" Line : ")
	ju = raw_input("yes/no to del 00.txt\n >")
	if (ju == "yes"):
		os.system("rm ./00.txt")
	gen_ma(int(number),int(line))

